import { RoutesAlias } from '@/router/routesAlias'
import { AppRouteRecord } from '@/types/router'

const meta = {}

const pre = 'personAdmin-'

export default {
  path: '/personAdmin',
  name: 'personAdmin',
  redirect: {
    name: `${pre}dangAnGuanLi`
  },
  meta: { ...meta, title: '人员管理' },
  component: RoutesAlias.Home,
  children: [
    {
      path: 'dangAnGuanLi',
      name: '13100',
      meta: {
        ...meta,
        title: '档案管理'
      }
      // component: () => import('@/pages/personAdmin/dangAnGuanLI')
    },
    {
      path: 'renWuFenPei',
      name: '13200',
      meta: {
        ...meta,
        title: '任务分配'
      }
      // component: () => import('@/pages/personAdmin/renWuFenPei')
    },
    {
      path: 'renWuGuanLi2',
      name: '13300',
      meta: {
        ...meta,
        title: '任务管理'
      }
      // component: () => import('@/pages/personAdmin/renWuGuanLi2')
    },
    {
      path: 'jiXiaoKaoHao',
      name: '13400',
      meta: {
        ...meta,
        title: '绩效考核'
      }
      // component: () => import('@/pages/personAdmin/jiXiaoKaoHao')
    },
    {
      path: 'fuZuRenWu',
      name: '13500',
      meta: {
        ...meta,
        title: '辅助任务'
      }
      // component: () => import('@/pages/personAdmin/fuZuRenWu')
    }
  ]
} as AppRouteRecord
